package com.zlb.leyaoxiu2.sqlite.entity;

/**
 * Created by Administrator on 2016/8/18.
 */
public class ImChatType {

    public static Integer STATE_IS_READ = 1;            //已读
    public static Integer STATE_UN_READ = 0;            //未读

    public static String MSG_TYPE_TEXT = "01";            //文本类型
    public static String MSG_TYPE_IMG = "02";             //图片类型
    public static String MSG_TYPE_VOICE = "03";           //语音类型

    public static Integer SEND_STATE_SENDING = 1;       //发送中
    public static Integer SEND_STATE_SUCCESS = 2;       //发送成功
    public static Integer SEND_STATE_ERROR = 3;         //发送失败

    public static Integer MSG_FROM_SELF = 1;              //是自己发的
    public static Integer MSG_FORM_OTHER = 2;           //是对方发的

    public static String SYSTEM_TYPE_IM = "11";     //私聊消息


    public static String getSystemMsgUnique(String userId,String peerId){
        return userId+"|"+peerId;
    }

}
